package router

import (
	"getaway/basic/config"
	"getaway/handler/api"
	"getaway/middleware"
	"github.com/gin-gonic/gin"
)

func Map(v1 *gin.RouterGroup) {
	maps := v1.Group("/map")
	{
		maps.Use(middleware.JWTAuth(config.KEY_JWT))
		maps.GET("/getLocInfo", api.GetLocationInfo)      // 获取位置信息
		maps.GET("/routeRecommend", api.RouteRecommend)   // 路线推荐
		maps.GET("/addressLocation", api.AddressLocation) // 地址查询经纬度
	}

}
